#!/usr/bin/python
import os
import sys

for instance in os.listdir("./instances/"):
  if ( instance[0] == '0'):
    print "Solving instance: "+instance
#    for seed in xrange(0,3):
    os.system("./main "+instance+" 0 5");
#    os.system("./run "+instance+" "+str(seed)+" 600 >> roadef_outputs/data_structure/"+instance);
